package haizhi.fruitmall.pojo.po;

import java.util.ArrayList;
import java.util.List;

public class RecevingInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RecevingInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRecevingIdIsNull() {
            addCriterion("receving_id is null");
            return (Criteria) this;
        }

        public Criteria andRecevingIdIsNotNull() {
            addCriterion("receving_id is not null");
            return (Criteria) this;
        }

        public Criteria andRecevingIdEqualTo(String value) {
            addCriterion("receving_id =", value, "recevingId");
            return (Criteria) this;
        }

        public Criteria andRecevingIdNotEqualTo(String value) {
            addCriterion("receving_id <>", value, "recevingId");
            return (Criteria) this;
        }

        public Criteria andRecevingIdGreaterThan(String value) {
            addCriterion("receving_id >", value, "recevingId");
            return (Criteria) this;
        }

        public Criteria andRecevingIdGreaterThanOrEqualTo(String value) {
            addCriterion("receving_id >=", value, "recevingId");
            return (Criteria) this;
        }

        public Criteria andRecevingIdLessThan(String value) {
            addCriterion("receving_id <", value, "recevingId");
            return (Criteria) this;
        }

        public Criteria andRecevingIdLessThanOrEqualTo(String value) {
            addCriterion("receving_id <=", value, "recevingId");
            return (Criteria) this;
        }

        public Criteria andRecevingIdLike(String value) {
            addCriterion("receving_id like", value, "recevingId");
            return (Criteria) this;
        }

        public Criteria andRecevingIdNotLike(String value) {
            addCriterion("receving_id not like", value, "recevingId");
            return (Criteria) this;
        }

        public Criteria andRecevingIdIn(List<String> values) {
            addCriterion("receving_id in", values, "recevingId");
            return (Criteria) this;
        }

        public Criteria andRecevingIdNotIn(List<String> values) {
            addCriterion("receving_id not in", values, "recevingId");
            return (Criteria) this;
        }

        public Criteria andRecevingIdBetween(String value1, String value2) {
            addCriterion("receving_id between", value1, value2, "recevingId");
            return (Criteria) this;
        }

        public Criteria andRecevingIdNotBetween(String value1, String value2) {
            addCriterion("receving_id not between", value1, value2, "recevingId");
            return (Criteria) this;
        }

        public Criteria andRecevingUsernameIsNull() {
            addCriterion("receving_username is null");
            return (Criteria) this;
        }

        public Criteria andRecevingUsernameIsNotNull() {
            addCriterion("receving_username is not null");
            return (Criteria) this;
        }

        public Criteria andRecevingUsernameEqualTo(String value) {
            addCriterion("receving_username =", value, "recevingUsername");
            return (Criteria) this;
        }

        public Criteria andRecevingUsernameNotEqualTo(String value) {
            addCriterion("receving_username <>", value, "recevingUsername");
            return (Criteria) this;
        }

        public Criteria andRecevingUsernameGreaterThan(String value) {
            addCriterion("receving_username >", value, "recevingUsername");
            return (Criteria) this;
        }

        public Criteria andRecevingUsernameGreaterThanOrEqualTo(String value) {
            addCriterion("receving_username >=", value, "recevingUsername");
            return (Criteria) this;
        }

        public Criteria andRecevingUsernameLessThan(String value) {
            addCriterion("receving_username <", value, "recevingUsername");
            return (Criteria) this;
        }

        public Criteria andRecevingUsernameLessThanOrEqualTo(String value) {
            addCriterion("receving_username <=", value, "recevingUsername");
            return (Criteria) this;
        }

        public Criteria andRecevingUsernameLike(String value) {
            addCriterion("receving_username like", value, "recevingUsername");
            return (Criteria) this;
        }

        public Criteria andRecevingUsernameNotLike(String value) {
            addCriterion("receving_username not like", value, "recevingUsername");
            return (Criteria) this;
        }

        public Criteria andRecevingUsernameIn(List<String> values) {
            addCriterion("receving_username in", values, "recevingUsername");
            return (Criteria) this;
        }

        public Criteria andRecevingUsernameNotIn(List<String> values) {
            addCriterion("receving_username not in", values, "recevingUsername");
            return (Criteria) this;
        }

        public Criteria andRecevingUsernameBetween(String value1, String value2) {
            addCriterion("receving_username between", value1, value2, "recevingUsername");
            return (Criteria) this;
        }

        public Criteria andRecevingUsernameNotBetween(String value1, String value2) {
            addCriterion("receving_username not between", value1, value2, "recevingUsername");
            return (Criteria) this;
        }

        public Criteria andRecevingAddressIsNull() {
            addCriterion("receving_address is null");
            return (Criteria) this;
        }

        public Criteria andRecevingAddressIsNotNull() {
            addCriterion("receving_address is not null");
            return (Criteria) this;
        }

        public Criteria andRecevingAddressEqualTo(String value) {
            addCriterion("receving_address =", value, "recevingAddress");
            return (Criteria) this;
        }

        public Criteria andRecevingAddressNotEqualTo(String value) {
            addCriterion("receving_address <>", value, "recevingAddress");
            return (Criteria) this;
        }

        public Criteria andRecevingAddressGreaterThan(String value) {
            addCriterion("receving_address >", value, "recevingAddress");
            return (Criteria) this;
        }

        public Criteria andRecevingAddressGreaterThanOrEqualTo(String value) {
            addCriterion("receving_address >=", value, "recevingAddress");
            return (Criteria) this;
        }

        public Criteria andRecevingAddressLessThan(String value) {
            addCriterion("receving_address <", value, "recevingAddress");
            return (Criteria) this;
        }

        public Criteria andRecevingAddressLessThanOrEqualTo(String value) {
            addCriterion("receving_address <=", value, "recevingAddress");
            return (Criteria) this;
        }

        public Criteria andRecevingAddressLike(String value) {
            addCriterion("receving_address like", value, "recevingAddress");
            return (Criteria) this;
        }

        public Criteria andRecevingAddressNotLike(String value) {
            addCriterion("receving_address not like", value, "recevingAddress");
            return (Criteria) this;
        }

        public Criteria andRecevingAddressIn(List<String> values) {
            addCriterion("receving_address in", values, "recevingAddress");
            return (Criteria) this;
        }

        public Criteria andRecevingAddressNotIn(List<String> values) {
            addCriterion("receving_address not in", values, "recevingAddress");
            return (Criteria) this;
        }

        public Criteria andRecevingAddressBetween(String value1, String value2) {
            addCriterion("receving_address between", value1, value2, "recevingAddress");
            return (Criteria) this;
        }

        public Criteria andRecevingAddressNotBetween(String value1, String value2) {
            addCriterion("receving_address not between", value1, value2, "recevingAddress");
            return (Criteria) this;
        }

        public Criteria andRecevingPhoneIsNull() {
            addCriterion("receving_phone is null");
            return (Criteria) this;
        }

        public Criteria andRecevingPhoneIsNotNull() {
            addCriterion("receving_phone is not null");
            return (Criteria) this;
        }

        public Criteria andRecevingPhoneEqualTo(String value) {
            addCriterion("receving_phone =", value, "recevingPhone");
            return (Criteria) this;
        }

        public Criteria andRecevingPhoneNotEqualTo(String value) {
            addCriterion("receving_phone <>", value, "recevingPhone");
            return (Criteria) this;
        }

        public Criteria andRecevingPhoneGreaterThan(String value) {
            addCriterion("receving_phone >", value, "recevingPhone");
            return (Criteria) this;
        }

        public Criteria andRecevingPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("receving_phone >=", value, "recevingPhone");
            return (Criteria) this;
        }

        public Criteria andRecevingPhoneLessThan(String value) {
            addCriterion("receving_phone <", value, "recevingPhone");
            return (Criteria) this;
        }

        public Criteria andRecevingPhoneLessThanOrEqualTo(String value) {
            addCriterion("receving_phone <=", value, "recevingPhone");
            return (Criteria) this;
        }

        public Criteria andRecevingPhoneLike(String value) {
            addCriterion("receving_phone like", value, "recevingPhone");
            return (Criteria) this;
        }

        public Criteria andRecevingPhoneNotLike(String value) {
            addCriterion("receving_phone not like", value, "recevingPhone");
            return (Criteria) this;
        }

        public Criteria andRecevingPhoneIn(List<String> values) {
            addCriterion("receving_phone in", values, "recevingPhone");
            return (Criteria) this;
        }

        public Criteria andRecevingPhoneNotIn(List<String> values) {
            addCriterion("receving_phone not in", values, "recevingPhone");
            return (Criteria) this;
        }

        public Criteria andRecevingPhoneBetween(String value1, String value2) {
            addCriterion("receving_phone between", value1, value2, "recevingPhone");
            return (Criteria) this;
        }

        public Criteria andRecevingPhoneNotBetween(String value1, String value2) {
            addCriterion("receving_phone not between", value1, value2, "recevingPhone");
            return (Criteria) this;
        }

        public Criteria andRecevingPostcodeIsNull() {
            addCriterion("receving_postcode is null");
            return (Criteria) this;
        }

        public Criteria andRecevingPostcodeIsNotNull() {
            addCriterion("receving_postcode is not null");
            return (Criteria) this;
        }

        public Criteria andRecevingPostcodeEqualTo(String value) {
            addCriterion("receving_postcode =", value, "recevingPostcode");
            return (Criteria) this;
        }

        public Criteria andRecevingPostcodeNotEqualTo(String value) {
            addCriterion("receving_postcode <>", value, "recevingPostcode");
            return (Criteria) this;
        }

        public Criteria andRecevingPostcodeGreaterThan(String value) {
            addCriterion("receving_postcode >", value, "recevingPostcode");
            return (Criteria) this;
        }

        public Criteria andRecevingPostcodeGreaterThanOrEqualTo(String value) {
            addCriterion("receving_postcode >=", value, "recevingPostcode");
            return (Criteria) this;
        }

        public Criteria andRecevingPostcodeLessThan(String value) {
            addCriterion("receving_postcode <", value, "recevingPostcode");
            return (Criteria) this;
        }

        public Criteria andRecevingPostcodeLessThanOrEqualTo(String value) {
            addCriterion("receving_postcode <=", value, "recevingPostcode");
            return (Criteria) this;
        }

        public Criteria andRecevingPostcodeLike(String value) {
            addCriterion("receving_postcode like", value, "recevingPostcode");
            return (Criteria) this;
        }

        public Criteria andRecevingPostcodeNotLike(String value) {
            addCriterion("receving_postcode not like", value, "recevingPostcode");
            return (Criteria) this;
        }

        public Criteria andRecevingPostcodeIn(List<String> values) {
            addCriterion("receving_postcode in", values, "recevingPostcode");
            return (Criteria) this;
        }

        public Criteria andRecevingPostcodeNotIn(List<String> values) {
            addCriterion("receving_postcode not in", values, "recevingPostcode");
            return (Criteria) this;
        }

        public Criteria andRecevingPostcodeBetween(String value1, String value2) {
            addCriterion("receving_postcode between", value1, value2, "recevingPostcode");
            return (Criteria) this;
        }

        public Criteria andRecevingPostcodeNotBetween(String value1, String value2) {
            addCriterion("receving_postcode not between", value1, value2, "recevingPostcode");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}